package com.wangshupo.app.geekpark.control;

import com.wangshupo.app.geekpark.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
public class NewsControl {

    @Autowired
    private NewsService newsService;

    @GetMapping(path = "/index")
    public String index(Model model, @RequestParam(value = "pageNo", required = false, defaultValue = "1") int pageNo,
                        @RequestParam(value = "pageSize", required = false, defaultValue = "20") int pageSize) {







         model.addAttribute("text","HelloWorld");
         return "index";
    }
}
